CFLAGS=-I../third/include
LFLAGS=-L../third/lib -lprotobuf -lsqlite3 -pthread -lmuduo_net -lmuduo_base -lz
FILES=mq_server.cpp ../common/mq_msg/mq_msg.pb.cc ../common/mq_proto/mq_proto.pb.cc ../third/include/muduo/proto/codec.cc

mq_server: $(FILES)
	g++ $(CFLAGS) $^ -o $@ -std=c++14 $(LFLAGS)

.PHONY:clean
clean:
	@rm -f mq_server